package demo1;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-07-16
 * Time: 9:48
 */
public class Config {
    File file;
    public static void openConfig(String filename) throws IOException {
        if(filename.equals("abc.txt")) {
            throw new FileNotFoundException("文件名字不对");
        }
    }

    public static void main(String[] args) throws IOException{
        Config.openConfig("abc.txt");
    }
}
